package edu.njpi.vueajax.model;

import java.util.Date;

public class Product {
    private int prodId;
    private String prodName;
    private Date ctime;
    //no parameter constructor

    public Product() {
    }
    //parameter constructor
    public Product(int prodId, String prodName, Date ctime) {
        this.prodId = prodId;
        this.prodName = prodName;
        this.ctime = ctime;
    }
    //other

    public Product(String prodName) {
        this.prodName = prodName;
    }
    //setter and getter

    public int getProdId() {
        return prodId;
    }

    public void setProdId(int prodId) {
        this.prodId = prodId;
    }

    public String getProdName() {
        return prodName;
    }

    public void setProdName(String prodName) {
        this.prodName = prodName;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }
    //toString

    @Override
    public String toString() {
        return "Product{" +
                "prodId=" + prodId +
                ", prodName='" + prodName + '\'' +
                ", ctime=" + ctime +
                '}';
    }
}
